import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import vant from '@/config/van.config'
import 'vant/lib/index.css'
import Vconsole from 'vconsole'


const app = createApp(App)

if (process.env.NODE_ENV !== 'production') { // 测试和开发打开，生产不能打开
  let vConsole = new Vconsole()
  app.use(vConsole)
}
app.use(createPinia())
app.use(router).use(vant)

app.mount('#app')
